import type { rootState } from '/#/vuex';
import type { App } from 'vue';
import { createStore } from 'vuex';
import menu from './modules/menu';

const store = createStore<rootState>({
  modules: {
    menu,
  },
});

export function setupStore(app: App<Element>) {
  app.use(store);
}

export { store };
